package org.apache.james.mime4j.field;

public class ContentTransferEncodingField extends Field
{
  private String encoding;

  protected ContentTransferEncodingField(String paramString1, String paramString2, String paramString3, String paramString4)
  {
    super(paramString1, paramString2, paramString3);
    this.encoding = paramString4;
  }

  public static String getEncoding(ContentTransferEncodingField paramContentTransferEncodingField)
  {
    String str;
    if ((paramContentTransferEncodingField != null) && (paramContentTransferEncodingField.getEncoding().length() != 0))
      str = paramContentTransferEncodingField.getEncoding();
    while (true)
    {
      return str;
      str = "7bit";
    }
  }

  public String getEncoding()
  {
    return this.encoding;
  }

  public static class Parser
  implements FieldParser
  {
    public Field parse(String paramString1, String paramString2, String paramString3)
    {
      return new ContentTransferEncodingField(paramString1, paramString2, paramString3, paramString2.trim().toLowerCase());
    }
  }
}